#!__author__ = "yf"
"""
pycharm
"""
import allure
import pytest


@allure.step('step in conftest.py')
def conftest_step():
    print("========================conftest_step====================================")
    pass


@pytest.fixture
def fixture_with_conftest_step():
    print("==================fixture_with_conftest_step=======================")
    conftest_step()


@pytest.fixture(scope="class")
def db_class(request):
    class DummyDB:
        pass

    # set a class attribute on the invoking test context
    request.cls.db = DummyDB()